﻿using System;
using SharpSqlAnalyzer.nodes;

namespace SharpSqlAnalyzer.stmt.snowflake
{
	// Token: 0x020000F5 RID: 245
	public class TCreateWarehouseStmt : TCustomSqlStatement
	{
		// Token: 0x0600083D RID: 2109 RVA: 0x00301C49 File Offset: 0x002FFE49
		public void setWarehouseName(TObjectName warehouseName)
		{
			this.warehouseName = warehouseName;
		}

		// Token: 0x0600083E RID: 2110 RVA: 0x00301C52 File Offset: 0x002FFE52
		public TObjectName getWarehouseName()
		{
			return this.warehouseName;
		}

		// Token: 0x0600083F RID: 2111 RVA: 0x00301C5A File Offset: 0x002FFE5A
		public TCreateWarehouseStmt(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstCreateWarehouse;
		}

		// Token: 0x06000840 RID: 2112 RVA: 0x00301C70 File Offset: 0x002FFE70
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			base.doParseStatement(psql);
			TDummy tdummy = (TDummy)this.rootNode;
			this.warehouseName = (TObjectName)tdummy.node1;
			return 0;
		}

		// Token: 0x06000841 RID: 2113 RVA: 0x00301CAD File Offset: 0x002FFEAD
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x06000842 RID: 2114 RVA: 0x00301CBD File Offset: 0x002FFEBD
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x04001207 RID: 4615
		private TObjectName warehouseName;
	}
}
